<?php
/* @var $this SuratKeluarTemplateController */
/* @var $model SuratKeluarTemplate */
/* @var $form CActiveForm */
?>
<?php $this->beginWidget('ext.widgets.XPanel', array('title' => 'Surat Keluar Templates', 'width' => 900,'height' => 500)); 
?>
<div class="form">

<?php $form=$this->beginWidget('ext.CAxActiveForm', array(
	'id'=>'surat-keluar-template-form',
	'enableAjaxValidation'=>true,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>
    <table class="ma-table">
        <tbody>
	
        <tr>
		<td class="labelfield" style="width:200px"><?php echo $form->labelEx($model,'judul_surat'); ?>
</td>
		<td><?php echo CHtml::activeTextField($model,'judul_surat'); ?>
</td>
		<td><?php echo $form->error($model,'judul_surat'); ?>
</td>
	</tr>
        
        <tr>
		<td class="labelfield" style="width:200px"><?php echo $form->labelEx($model,'deskripsi'); ?>
</td>
		<td><?php echo CHtml::activeTextField($model,'deskripsi'); ?>
</td>
		<td><?php echo $form->error($model,'deskripsi'); ?>
</td>
	</tr>
        
	<tr>
		<td class="labelfield" style="width:200px"><?php echo $form->labelEx($model,'isi_surat'); ?>
</td>
		<td>
            <?php
            $this->widget('ext.xheditor.XHeditor',array(
                'model'=>$model,
                'modelAttribute'=>'isi_surat',
                'showModelAttributeValue'=>true, // defaults to true, displays the value of $modelInstance->attribute in the textarea
                'config'=>array(
                    'id'=>'xh1',
                    //'name'=>'xh',
                    'tools'=>'simple', // mini, simple, fill or from XHeditor::$_tools
                    'width'=>'100%',
                    //see XHeditor::$_configurableAttributes for more
                ),
            ));
            ?>
</td>
		<td><?php echo $form->error($model,'isi_surat'); ?>
</td>
	</tr>

	<tr>
		<td></td>
                <td><?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('class'=>'ax-btn')); ?>
</td>
                <td></td>
	</tr>
        </tbody>
    </table>
<?php $this->endWidget(); ?>

</div><!-- form -->
<?php $this->endWidget(); ?>